import helpers.Client;

import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;


public class CoreServer extends Thread {

	
	protected String[] m_ipServer = {"localhost" ,"localhost","localhost"};
	
	protected int m_portServer;

	protected List<Client> m_clients;
	
	protected static int ID = 1;
	
	public CoreServer()
	{
		m_clients = new CopyOnWriteArrayList<Client>();
		
		m_portServer = 5002;
	}
	
	@Override
	public void run()
	{
	}
	
	public void doIt()
	{
		// TCP
		TCPCoreServer serverTCP = new TCPCoreServer(5001,5004);
		serverTCP.start();
				
		try {
			serverTCP.join();
		} catch (Exception e) {}
						
	/*	// UDP
		UDPCoreServer serverUDP = new UDPCoreServer(50012, 50013);
		serverUDP.start();
				
		try {
			serverUDP.join();
		} catch (Exception e) {}*/
	}
	
	public static void main(String ...args)
	{
	 CoreServer cs = new CoreServer();
	 cs.doIt();
	}
}
